﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddNewCheckIn.ascx.cs" Inherits="NLLSite.Administrator.UserControl.AddNewCheckIn" %>
<%@ Register assembly="BasicFrame.WebControls.BasicDatePicker" namespace="BasicFrame.WebControls" tagprefix="BDP" %>

<asp:Panel ID="Panel1" runat="server">
    <table>
        <tr>
            <td> Họ tên: </td>
            <td class="style1"> 
                <asp:TextBox ID="txtTen" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTen" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td> Ngày sinh: </td>
            <td class="style1"> 
                <asp:DropDownList ID="ddlDay" runat="server">
                </asp:DropDownList> / 
                <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlMonth_SelectedIndexChanged">
                </asp:DropDownList> / 
                <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlYear_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td> 
                &nbsp;</td>
        </tr>
        <tr>
            <td> Số điện thoại: </td>
            <td class="style1"> 
                <asp:TextBox ID="txtDienthoai" runat="server" Width="200px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="txtDienthoai" ErrorMessage="Không đúng định dạng" 
                    ValidationExpression="0[ \d]*"></asp:RegularExpressionValidator>
            </td>
            <td> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtDienthoai" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>
        </tr>
         <tr>
            <td> Email: </td>
            <td class="style1"> 
                <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Không đúng định dạng" 
                    ValidationExpression="^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$"></asp:RegularExpressionValidator>
             </td>
            <td> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="(*)"></asp:RequiredFieldValidator>
             </td>
        </tr>
         <tr>
            <td> Nơi làm việc: </td>
            <td class="style1"> 
                <asp:TextBox ID="txtCongty" runat="server" Width="400px"></asp:TextBox>
             </td>
            <td> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtCongty" ErrorMessage="(*)"></asp:RequiredFieldValidator>
             </td>
        </tr>
         <tr>
            <td> Ghi chú: </td>
            <td class="style1"> 
                <asp:TextBox ID="txtThongtin" runat="server" TextMode="MultiLine" Height="90px" 
                    Width="400px"></asp:TextBox>
             </td>
            <td> 
                &nbsp;</td>
        </tr>
        <tr>
            <td> Khóa học: </td>
            <td class="style1"> 
                
                <asp:CheckBoxList ID="CheckBoxList1" runat="server" 
                    DataSourceID="LinqDataSource1" DataTextField="Name" DataValueField="ID">
                </asp:CheckBoxList>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="DAL_Class.NLLDataContext" OrderBy="ID desc" 
                    Select="new (ID, Name)" TableName="Courses" Where="Status == @Status">
                    <WhereParameters>
                        <asp:Parameter DefaultValue="True" Name="Status" Type="Boolean" />
                    </WhereParameters>
                </asp:LinqDataSource>
                
             </td>
            <td> 
                
             </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td class="style1"> 
                
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
                <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" 
                    Text="Đăng ký" />
            </td>
        </tr>
    </table>
</asp:Panel>
<p><center><b><asp:Label ID="lblSuccess" runat="server" 
    ForeColor="#0099FF" Text="Label" 
                    Visible="False"></asp:Label></b></center></p>

